package com.wenjoying.user.service.feign;

import com.alibaba.fastjson.JSONObject;
import com.wenjoying.user.config.RestConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "wenjoying.goods", fallback = GoodsServiceFallback.class, configuration = RestConfig.class)
public interface GoodsService {

    /**
     * 获取项目列表
     * @param jsonObject
     * @return
     */
    @PostMapping("goods/goods/testApi")
    JSONObject testApi(@RequestBody JSONObject jsonObject);
}